FROM python:2.7-wheezy

MAINTAINER laughstorm <laughstorm@foxmail.com>

RUN mkdir -p  /home/zkdash

ENV app_name="zkdash"
ENV work_dir="/home/zkdash"

WORKDIR /home/zkdash

COPY . $work_dir

RUN pip install --upgrade pip  -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
RUN pip install --no-cache-dir -r requirements.txt  -i http://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

#VOLUME  ["/home/zkdash/conf"]

EXPOSE 8888

ENTRYPOINT ["sh","-c","python /home/zkdash/init.py -port=8888"]




